﻿<?php
	if (isset($_POST["nomAtelier"])){
		$nom = $_POST["nomAtelier"];
		include "fonctions.php";
		db_connect();
		$req = "SELECT nomAtelier FROM ateliers WHERE nomAtelier = '$nom';";
		$res = mysql_query($req) or die (mysql_error());
		$nb = mysql_num_rows($res);
		
		if ($nb != 0)
		{
			echo "true";
		}
		else
		{
			echo "false";
		}
	}
?>